<template>
  <div class="container">
      <van-uploader :after-read="afterRead" />
  </div>
</template>

<script>
import {Get,Post} from '../gp.js'
export default {
  methods: {
     afterRead(file) {
        let content = file.file;
        let data = new FormData();
        data.append('img',content);
        this.axios.post('图片上传地址',data)
        .then((res) => {
            let datas = res.data.datas.path;
            this.msg.hallImg.push(`api地址${datas}`);
        });
      }
  },
  
}
</script>